package org.nlp2rdf.navigator.client.util;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.PopupPanel;

public class PopupHelper {

	public static PopupPanel getGlass() {
		/*********************************************
		 * A glass panel or 'blinder' to wash out the current screen
		 ********************************************/
		PopupPanel glass = new PopupPanel();
		// glass.setStyleName("rx-glass");
		/*
		 * Set full screen
		 */
		DOM.setStyleAttribute(glass.getElement(), "width", "100%");
		DOM.setStyleAttribute(glass.getElement(), "height", "100%");
		// /*
		// * Add default styles if required
		// */
		DOM.setStyleAttribute(glass.getElement(), "backgroundColor", "#000");
		DOM.setStyleAttribute(glass.getElement(), "opacity", "0.70");
		DOM.setStyleAttribute(glass.getElement(), "filter", " alpha(opacity=70)");
		return glass;
	}
}
